package cn.bxshey.auth.domain.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @作者：不想说话而已
 * @Date：2023/11/27 21:57
 * @Table: 用户表
 */

@Data
@TableName("user")
public class User{
    private Long userId;
    private String username;
    private Date born;
    private Date lastLogin;
    private Date registrationTime;
    private String openid;
    private String phone;
    private String avatar;
    private Integer statue;
    private Integer sex;
    private Integer id_number;

    public User() {}

    public User(String username, String openid) {
        this.username = username;
        this.openid = openid;
        this.sex = 1;
        this.avatar = "https://www.lyzhnb.top/0c3e069f-07f2-4b82-a2fc-32afe69b038a"; //默认头像
    }
}
